package com.dingreading.cloud.admin.service;

import com.dingreading.cloud.admin.entity.CourseTrain;
import com.dingreading.cloud.common.util.PageUtil;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

/**
 * 叮叮线下培训课程表 服务层。
 *
 * @author EDY
 * @since 2025-11-17
 */
public interface CourseTrainService extends IService<CourseTrain> {

    long getByTypeIdCnt(String typeUid);

    Page<CourseTrain> pageList(PageUtil pageUtil, String mainTypeUid, String typeUid, String keyword, Integer enabled);

    Integer getMaxShowOrder(String typeUid);

    CourseTrain getByUid(String uid);

    CourseTrain getLtOrderNum(String typeUid, Integer orderNum);

    boolean updateOrderNum(Long id, Integer curOrderNum);

    CourseTrain getGtOrderNum(String typeUid, Integer orderNum);
}
